package flyweight;

/**
 * @author : DuJiabao
 * @Date : 2021/3/3 23:03
 * @Project : design-pattern
 * @File : null.java
 * @Desc :
 */
// 包含棋子及其位置的一个类
public class ChessPiece {
  private ChessPieceUnit unit;
  private int positionX;
  private int positionY;

  public ChessPiece(ChessPieceUnit unit, int positionX, int positionY) {
    this.unit = unit;
    this.positionX = positionX;
    this.positionY = positionY;
  }
}
